package com.jz.netthings.core.dao.mysql;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.jz.netthings.core.bean.demo.DemoUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author yyy
 * @ClassName UserMapper
 * @Description TODO
 * @date 2018/7/30 11:16
 */
@Mapper
//@Repository
public interface UserMapper extends BaseMapper<DemoUser> {

    @Select("SELECT * FROM USER")
    public List<DemoUser> queryAllDemoUser();

//    @Insert("INSERT INTO `USER` (`id`, `name`, `address`) VALUES (#{id},#{name},#{address})")
//    public void insertUser(DemoUser user);
}
